package com.gaokao.demo.entity;


import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * <p>
 * 角色
 * </p>
 *
 * @author szs
 * @since 2021-01-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "role")
public class SysRole implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 主键自增
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 角色名称
     */
    private String name;

    private String remark;

    private Integer createBy;

    private LocalDateTime createDate;

    private Integer updateBy;

    private LocalDateTime updateDate;

    /**
     * 角色可以访问的菜单
     */
    @TableField(exist = false)
    private List<Menu> menuList;

    /**
     * 逻辑删除（0、正常，1、删除）
     */
    @TableLogic
    private Integer delFlag;

    public SysRole(String id){
        this.id=id;
    }


}
